﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AddStaff.ascx.vb" Inherits="WebForm_ManageStaff_AddStaff" %>
<div style="background-color: #351D26">
<My:MyFormView ID="fv" runat="server" DefaultMode="ReadOnly">
    <ItemTemplate>
        <table>
            <tr>
                <td align="right">
                    <asp:Label ID="lblEmployeeID" runat="server" meta:resourcekey="lblEmployeeID"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtWindowsID" runat="server" Text='<%# Bind("EmployeeID") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvEmployeeID" runat="server" ControlToValidate="txtWindowsID"  SetFocusOnError="true"
                        Display="None" ValidationGroup="vSave" meta:resourcekey="rfvEmployeeID"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblEmployeeName" runat="server" meta:resourcekey="lblEmployeeName"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtEmployeeName" runat="server" Text='<%# Bind("EmployeeName") %>'></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblOrganization" runat="server" meta:resourcekey="lblOrganization"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlOrganization" runat="server">
                    </asp:DropDownList>
                     <asp:RequiredFieldValidator ID="rfvOrganizationID" runat="server" Display="None" ControlToValidate="ddlOrganization" meta:resourcekey="rfvOrganizationID" ValidationGroup="vSave"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblGender" runat="server" meta:resourcekey="lblGender"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlGender" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblTitle" runat="server" meta:resourcekey="lblTitle"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtTitle" runat="server" Text='<%#Bind("Title") %>'></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblEmail" runat="server" meta:resourcekey="lblEmail"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtEmail" runat="server" Text='<%# Bind("Email") %>'></asp:TextBox>
                    <asp:RegularExpressionValidator ID="revEmail" meta:resourcekey="revEmail" ValidationGroup="vSave" runat="server"  ControlToValidate="txtEmail" ValidationExpression="^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPhoneNumber" runat="server" meta:resourcekey="lblPhoneNumber"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtPhoneNumber" runat="server" MaxLength="50" Text='<%# Bind("PhoneNumber") %>'></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblExt" runat="server" meta:resourcekey="lblExt"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtExt" runat="server" MaxLength="50" Text='<%# Bind("Ext") %>'></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPassword" runat="server" meta:resourcekey="lblPassword"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblActive" runat="server" meta:resourcekey="lblActive"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlActive" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Button ID="btnAdd" runat="server" meta:resourcekey="btnAdd" CommandName="btnSave"
                        ValidationGroup="vSave" />
                    <ajaxToolkit:ConfirmButtonExtender ID="cbSave" runat="server" TargetControlID="btnAdd"
                        meta:resourcekey="cbSave">
                    </ajaxToolkit:ConfirmButtonExtender>
                </td>
                <td align="left">                    
                    <asp:Button ID="btnCancel" runat="server" meta:resourcekey="btnCancel" CommandName="btnCancel" />
                </td>
            </tr>
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
            ShowSummary="false" ValidationGroup="vSave" />
    </ItemTemplate>
</My:MyFormView>
</div>
